// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.common.mybatis.handlers.SysFileListTypeHandler;
import com.fowo.api.sys.entity.SysFile;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * RequisitionProduct
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "requisition_product", autoResultMap = true)
@Schema(title = "调拨单子表")
public class RequisitionProduct implements Serializable {

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 所属调拨单
   */
  @TableField(value = "`parent_requisition`")
  @JoinField(Requisition.class)
  @Schema(title = "所属调拨单")
  private Long parentRequisition;

  /**
   * 图片
   */
  @TableField(value = "`img`", typeHandler = SysFileListTypeHandler.class)
  @Schema(title = "图片")
  private List<SysFile> img;

  /**
   * 库存
   */
  @TableField(value = "`cash_statement`")
  @JoinField(InventoryReal.class)
  @Schema(title = "库存")
  private Long cashStatement;

  /**
   * 品名
   */
  @TableField(value = "`product_id`")
  @JoinField(Product.class)
  @Schema(title = "品名")
  private Long productId;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * SKU
   */
  @TableField(value = "`sku`")
  @Schema(title = "SKU")
  private String sku;

  /**
   * 产品标签
   */
  @TableField(value = "`product_label`")
  @Schema(title = "产品标签")
  private String productLabel;

  /**
   * FNSKU
   */
  @TableField(value = "`fnsku`")
  @Schema(title = "FNSKU")
  private String fnsku;

  /**
   * 店铺
   */
  @TableField(value = "`shop_name`")
  @JoinField(ShopInfo.class)
  @Schema(title = "店铺")
  private Long shopName;

  /**
   * 可用量
   */
  @TableField(value = "`availble_num`")
  @Schema(title = "可用量")
  private Integer availbleNum;

  /**
   * 可用调拨量
   */
  @TableField(value = "`availble_rqt_num`")
  @Schema(title = "可用调拨量")
  private Integer availbleRqtNum;

  /**
   * 出库可用仓位
   */
  @TableField(value = "`from_good_warehouse_bin`")
  @JoinField(WarehouseBin.class)
  @Schema(title = "出库可用仓位")
  private Long fromGoodWarehouseBin;

  /**
   * 次品量
   */
  @TableField(value = "`defective_quantity`")
  @Schema(title = "次品量")
  private Integer defectiveQuantity;

  /**
   * 次品调拨量
   */
  @TableField(value = "`defective_rqt_quantity`")
  @Schema(title = "次品调拨量")
  private Integer defectiveRqtQuantity;

  /**
   * 出库次品仓位
   */
  @TableField(value = "`from_bad_warehouse_bin`")
  @JoinField(WarehouseBin.class)
  @Schema(title = "出库次品仓位")
  private Long fromBadWarehouseBin;

  /**
   * 单品重量(g)
   */
  @TableField(value = "`basis_weight`")
  @Schema(title = "单品重量(g)")
  private java.math.BigDecimal basisWeight;

  /**
   * 包装规格(cm)
   */
  @TableField(value = "`packing_specification`")
  @Schema(title = "包装规格(cm)")
  private java.math.BigDecimal packingSpecification;

  /**
   * 可用收货量
   */
  @TableField(value = "`available_goods_received`")
  @Schema(title = "可用收货量")
  private Integer availableGoodsReceived;

  /**
   * 可用代收量
   */
  @TableField(value = "`available_for_collection`")
  @Schema(title = "可用代收量")
  private Integer availableForCollection;

  /**
   * 可用盈亏量
   */
  @TableField(value = "`available_profit_loss`")
  @Schema(title = "可用盈亏量")
  private Integer availableProfitLoss;

  /**
   * 次品收货量
   */
  @TableField(value = "`defective_goods_received`")
  @Schema(title = "次品收货量")
  private Integer defectiveGoodsReceived;

  /**
   * 次品代收量
   */
  @TableField(value = "`defective_goods_collected`")
  @Schema(title = "次品代收量")
  private Integer defectiveGoodsCollected;

  /**
   * 次品盈亏量
   */
  @TableField(value = "`defective_profit_loss`")
  @Schema(title = "次品盈亏量")
  private Integer defectiveProfitLoss;

  /**
   * 入库可用仓位
   */
  @TableField(value = "`to_good_warehouse_bin`")
  @JoinField(WarehouseBin.class)
  @Schema(title = "入库可用仓位")
  private Long toGoodWarehouseBin;

  /**
   * 入库次品仓位
   */
  @TableField(value = "`to_bad_warehouse_bin`")
  @JoinField(WarehouseBin.class)
  @Schema(title = "入库次品仓位")
  private Long toBadWarehouseBin;

  /**
   * 合计
   */
  @TableField(value = "`total`")
  @Schema(title = "合计")
  private String total;

  /**
   * 备注
   */
  @TableField(value = "`remark`")
  @Schema(title = "备注")
  private String remark;
}
